﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BusinessPlatform.Data;
using NewStartHanldingUI.Menus;
using NewStartModels.Models.Authorities;

namespace NewStartHanldingUI.CurrentUser
{
    public interface ICurrentUser
    {
        #region 用户信息
        /// <summary>
        /// 用户内部Id编号
        /// </summary>
        int UserId { get; }
        /// <summary>
        /// 用户代码
        /// </summary>
        string UserCode { get; }
        /// <summary>
        /// 用户名
        /// </summary>
        string UserName { get; }
        /// <summary>
        /// 用户密码
        /// </summary>
        string Password { get; }
        /// <summary>
        /// 超级用户
        /// </summary>
        Enumerator.BOYesOrNo IsSupperUser { get; }
        /// <summary>
        /// 登陆时间
        /// </summary>
        DateTime LoginDateTime { get; }
        /// <summary>
        /// 登陆机器名称
        /// </summary>
        string LoginMachineName { get; }
        /// <summary>
        /// 登陆IP
        /// </summary>
        string LoginMachineIP { get; }
        /// <summary>
        /// 语言
        /// </summary>
        string LoginLanguage { get; }
        #endregion
        IList<IAuthoritier> Authors { get; }
        IMenus Menus { get; }
    }
}
